package com.neusoft.feign;

import com.neusoft.po.Cart;
import com.neusoft.po.CommonResult;
import com.neusoft.po.Redenv;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@Service
public class RedenvFeignClientCallBack implements   RedenvFeignClient {
    /*@Override
    public CommonResult listCart(Cart cart){
        //返回降级响应（食品信息返回null）
        return new CommonResult(403, "fegin触发了熔断降级", null);
    }

    @Override
    public CommonResult clearCart(Cart cart){
        //返回降级响应（食品信息返回null）
        return new CommonResult(403, "fegin触发了熔断降级", null);
    }*/

    @Override
    public CommonResult useRedenvByRedenvId(@RequestParam("redenvId") Integer redenvId){
        //返回降级响应（食品信息返回null）
        return new CommonResult(403, "fegin触发了熔断降级", null);
    }

    @Override
    public CommonResult getRedenvByRedenvId(@PathVariable("redenvId") Integer redenvId){
        return new CommonResult(403, "fegin触发了熔断降级", null);
    }
}
